package com.bcmusic.music.service;

import com.bcmusic.music.pojo.MusicEmotion;
import com.github.pagehelper.PageInfo;

import java.util.List;

/****
 * @Author:admin
 * @Description:MusicEmotion业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface MusicEmotionService {

    /***
     * MusicEmotion多条件分页查询
     * @param musicEmotion
     * @param page
     * @param size
     * @return
     */
    PageInfo<MusicEmotion> findPage(MusicEmotion musicEmotion, int page, int size);

    /***
     * MusicEmotion分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<MusicEmotion> findPage(int page, int size);

    /***
     * MusicEmotion多条件搜索方法
     * @param musicEmotion
     * @return
     */
    List<MusicEmotion> findList(MusicEmotion musicEmotion);

    /***
     * 删除MusicEmotion
     * @param id
     */
    void delete(Long id);

    /***
     * 修改MusicEmotion数据
     * @param musicEmotion
     */
    void update(MusicEmotion musicEmotion);

    /***
     * 新增MusicEmotion
     * @param musicEmotion
     */
    void add(MusicEmotion musicEmotion);

    /**
     * 根据ID查询MusicEmotion
     * @param id
     * @return
     */
     MusicEmotion findById(Long id);

    /***
     * 查询所有MusicEmotion
     * @return
     */
    List<MusicEmotion> findAll();
}
